package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;


/**
 * 点检计划明细对象 MB_ERP_EQUIPMENT_UPKEEP_PLAN_DETAIL
 *
 * @author Cheng
 * @date 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_UPKEEP_PLAN_DETAIL")
@Schema(description="点检计划明细")
public class EquipmentUpkeepPlanDetail extends BaseEntity {

private static final long serialVersionUID=1L;

    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    @Column(name = "PLAN_ID_")
    @Schema(description = "点检计划ID")
    private String planId;

    @Column(name = "DETAIL_ID_")
    @Schema(description = "点检标准明细id")
    private String detailId;

    @Column(name = "NUM_")
    @Schema(description = "序号")
    private Integer num;

    @Column(name = "CONTENT_")
    @Schema(description = "内容")
    private String content;

    @Column(name = "PLACE_DESCRIBE_")
    @Schema(description = "部位描述")
    private String placeDescribe;

    @Column(name = "METHOD_")
    @Schema(description = "方法")
    private String method;

    @Column(name = "TARGET_")
    @Schema(description = "目标")
    private String target;

    @Column(name = "IS_RECORD_")
    @Schema(description = "是否记录属性")
    @Dict(dicCode = "ERP_COMMON_YESNO")
    private Integer isRecord;

    @Column(name = "UPPER_LIMIT_")
    @Schema(description = "上限值")
    private Double upperLimit;

    @Column(name = "LOWER_LIMIT_")
    @Schema(description = "下限值")
    private Double lowerLimit;

    @Column(name = "WARN_VALUE_")
    @Schema(description = "告警阈值")
    private Double warnValue;

    @Column(name = "EARLY_WARN_VALUE_")
    @Schema(description = "预警阈值")
    private Double earlyWarnValue;

    @Column(name = "ATTRIBUTE_UNIT_")
    @Schema(description = "属性值单位")
    private String attributeUnit;

    @Column(name = "EVALUATE_TIME_")
    @Schema(description = "估计用时")
    private Integer evaluateTime;

    @Column(name = "PIC_")
    @Schema(description = "标准图片")
    private String pic;

    @Column(name = "CHOOSE_ENABLE_")
    @Schema(description = "存在选项")
    @Dict(dicCode = "ERP_COMMON_YESNO")
    private Integer chooseEnable;

    @Column(name = "CONTENT_TYPE_")
    @Schema(description = "内容类型")
    @Dict(dicCode = "ERP_EQUIPMENT_COMMENT_TYPE")
    private String contentType;

    @Transient
    private String paramId;

    @Transient
    private String categoryId;


}
